import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useCounterStore = defineStore("counter", () => {
  const userInfo = ref({
    userId: 0,
    accountNumber: "",
    userTelephone: "",
    memberLevel: "",
    orderRecords: 0,
    availablePoints: 0,
    userTittle: "",
    idNumber:""
  });

  return { userInfo };
},
{
  persist: true,
}
);
